package com.gzhryc.shared_device.oem.h5.agent.dto.api.v1.config;

import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.List;

public class FuncModelListResponse extends SecurityResponse<FuncModelListResponse.Body> {

	private static final long serialVersionUID = 1L;

	public FuncModelListResponse() {
		this.body = new Body();
	}

	public FuncModelListResponse(Integer code, String msg) {
		super(code, msg);
		this.body = new Body();
	}

	public static class Body implements Serializable {

		private static final long serialVersionUID = 1L;
		
		private List<Item> items;

		public List<Item> getItems() {
			return items;
		}

		public void setItems(List<Item> items) {
			this.items = items;
		}
	}

	public static class Item implements Serializable {

		private static final long serialVersionUID = 1L;
		
		private Long id;
		private String code;		//管理权限
		private String name;
		private String note;
		private Integer type;		//1:功能模块，2:管理权限
		private Integer state;
		private String iconImg;
		private String url;
		private Integer homeShow;

		public Long getId() {
			return id;
		}

		public void setId(Long id) {
			this.id = id;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getNote() {
			return note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		public Integer getState() {
			return state;
		}

		public void setState(Integer state) {
			this.state = state;
		}

		public String getIconImg() {
			return iconImg;
		}

		public void setIconImg(String iconImg) {
			this.iconImg = iconImg;
		}

		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}

		public Integer getHomeShow() {
			return homeShow;
		}

		public void setHomeShow(Integer homeShow) {
			this.homeShow = homeShow;
		}
	}
}
